package com.log.log.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * packageName com.log.log.mapper
 *
 * @author yanshuanglong
 * @version JDK 8
 * @className OperationLoggerMapper
 * @date 2024/8/1
 * @description TODO
 */
@Mapper
public interface OperationLoggerMapper {

    Map<String, Object> getOldValue(@Param("tableName") String tableName, @Param("primaryKeyField") String primaryKeyField, @Param("primaryKeyValue") String primaryKeyValue);

    void addLogRecording(@Param("columns") Map<String, Object> columns);
}
